package com.weimob.cloud.api.token.client;

import com.dtflys.forest.annotation.BaseRequest;
import com.dtflys.forest.annotation.Post;
import com.dtflys.forest.annotation.Var;
import com.weimob.cloud.api.token.rsp.WeimobAccessTokenRsp;

/**
 * 微盟云平台访问令牌客户端接口
 */
@BaseRequest(baseURL = "https://dopen.weimob.com/fuwu/b/oauth2")
public interface WeimobAccessTokenClient {

    /**
     * 获取accessToken
     */
    @Post(url = "/token?grant_type=client_credentials&client_id=${clientId}&client_secret=${clientSecret}&shop_id=${shopId}&shop_type=business_operation_system_id")
    WeimobAccessTokenRsp accessToken(@Var("clientId") String clientId, @Var("clientSecret") String clientSecret, @Var("shopId") String shopId);
}
